home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Day Cry
/
Day Cry CD.bin
/
oh_towns
/
taropyon
/
splib
/
splib.lzh
/
PRG
/
ZMODEM
/
SZ.H
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-10
|
2KB
|
79 lines
#ifndef _SZ_H
#define _SZ_H
#ifdef XARGSFILE
static char *mystrsave(char *s);
static void uncrlf( register char *s );
#endif
static int wcsend(int argc, char *argp[]);
static int wcs(char *oname);
static int wctxpn(char *name);
static int getnak(void);
static int wctx(long flen);
static int wcputsec(char *buf, int sectnum, int cseclen);
static int filbuf(register char *buf, int count);
static int zfilbuf(void);
#ifdef TXBSIZE
static int fooseek(FILE * fptr, long pos, int whence);
#endif
static void vfile( CONST char *form, ... );
#ifndef __TOWNS__
static void alrm(void);
#endif
static int readline(int timeout);
static void flushmo(void);
static void purgeline(void);
static void canit(void);
#ifdef __HIGHC__
static void zperr(char *form, ... );
#else
static void zperr(char *s, char *p, char *u);
#endif
static char *substr(register char *s, register char *t);
static int getzrxinit(void);
static int sendzsinit(void);
static int zsendfile(char *buf, int blen);
static int zsendfdata(void);
static int getinsync(int flag);
static void saybibi(void);
static void bttyout(int c);
static int zsendcmd(char *buf, int blen);
static void chkinvok(char *s);
static void countem(int argc, register char **argv);
static void chartest(int m);
#define sendline(_c) RS_putc(RsPort,(_c) & 0xFF)
#define xsendline(_c) RS_putc(RsPort,(_c) & 0xFF)
#define PATHLEN 256
#define OK 0
#ifndef FALSE
# define FALSE 0
#endif
#ifdef TRUE
# undef TRUE
#endif
#define TRUE 1
#define ERROR (-1)
/* Ward Christensen / CP/M parameters - Don't change these! */
#define ENQ 005
#define CAN ('X'&037)
#define XOFF ('s'&037)
#define XON ('q'&037)
#define SOH 1
#define STX 2
#define EOT 4
#define ACK 6
#define NAK 025
#define CPMEOF 032
#define WANTCRC 0103 /* send C not NAK to get crc not checksum */
#define WANTG 0107 /* Send G not NAK to get nonstop batch xmsn */
#define TIMEOUT (-2)
#define RCDO (-3)
#define GCOUNT (-4)
#define RETRYMAX 10
static void usage(void);
#endif